Skip to content

Conversation

@caddoo
Copy link
Contributor

@caddoo caddoo commented Dec 16, 2025

Description

Adds a simple timing class for archiving context, recording results in this format:

archiving_metrics
├─ metadataid             BIGINT UNSIGNED PK AUTO_INCREMENT
├─ idarchive              BIGINT UNSIGNED NULL (idx: idx_archiving_metrics_idarchive)
├─ idsite                 INTEGER UNSIGNED NOT NULL
├─ segment                VARCHAR(255) NULL
├─ date1                  DATE NOT NULL
├─ date2                  DATE NOT NULL
├─ period                 VARCHAR(10) NOT NULL (idx: idx_archiving_metrics_site_date_period on idsite, date1, period)
├─ ts_started             DATETIME NOT NULL
├─ ts_finished            DATETIME NOT NULL
├─ total_time             BIGINT UNSIGNED NOT NULL
└─ total_time_exclusive   BIGINT UNSIGNED NOT NULL

Follow up will be integrating with the archiving process
and then a cleanup scheduled task to remove old data.

Checklist

  • [✔] I have understood, reviewed, and tested all AI outputs before use
  • [✔] All AI instructions respect security, IP, and privacy rules

Review

@caddoo caddoo force-pushed the dev-19750-timing-metrics branch 6 times, most recently from d089e53 to 9e837dc Compare December 17, 2025 21:01
@caddoo caddoo marked this pull request as ready for review December 17, 2025 22:20
@caddoo caddoo requested a review from mneudert December 17, 2025 22:20
@caddoo caddoo force-pushed the dev-19750-timing-metrics branch 2 times, most recently from 887b7ba to f08ed6e Compare December 19, 2025 02:21
@caddoo caddoo added this to the 5.7.0 milestone Dec 19, 2025
@caddoo caddoo requested a review from mneudert December 23, 2025 23:47
@github-actions
Copy link
Contributor

github-actions bot commented Jan 7, 2026

If you don't want this PR to be closed automatically in 28 days then you need to assign the label 'Do not close'.

@github-actions github-actions bot added Stale The label used by the Close Stale Issues action and removed Stale The label used by the Close Stale Issues action labels Jan 7, 2026
@caddoo
Copy link
Contributor Author

caddoo commented Jan 13, 2026

@mneudert I've addressed all the feedback now.

I've also added support for measuring 'report' archive timing.

@caddoo caddoo force-pushed the dev-19750-timing-metrics branch from bd748f3 to ea1993b Compare January 16, 2026 00:39
@caddoo caddoo modified the milestones: 5.7.0, 6.0.0 Jan 16, 2026
@caddoo caddoo force-pushed the dev-19750-timing-metrics branch 2 times, most recently from 0bd0623 to f8cb810 Compare January 16, 2026 01:01
@caddoo caddoo modified the milestone: 5.7.0 Jan 16, 2026
@caddoo caddoo requested a review from mneudert January 16, 2026 05:25
@mneudert mneudert force-pushed the dev-19750-timing-metrics branch from 06180da to a34bf5e Compare January 16, 2026 16:06
Copy link
Member

@mneudert mneudert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also added another timer test for a full cascade of year down to day (with two different weeks), just for a bit more details on how the exclusive time is calculated in those rare cases.

@caddoo caddoo modified the milestone: 5.7.0 Jan 19, 2026
@caddoo caddoo merged commit ef41360 into 5.x-dev Jan 19, 2026
29 of 31 checks passed
@caddoo caddoo deleted the dev-19750-timing-metrics branch January 19, 2026 01:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants